\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}

\begin{document}

\begin{tikzpicture}[scale=0.8]

% 五边形样式
\tikzset{
    pentagon/.style={
        regular polygon,
        regular polygon sides=5,
        minimum size=1.5cm,
        draw=black,
        thick,
        inner sep=0pt
    },
    dashed line/.style={dashed, thick}
}

% 第一个五边形
\begin{scope}[xshift=0cm]
    \node[pentagon] (p1) at (0,0) {};
    \fill[green!80!black] (p1.corner 1) -- (p1.corner 2) -- (p1.corner 3) -- cycle;
    \fill[blue!70!white] (p1.corner 3) -- (p1.corner 4) -- (p1.corner 1) -- cycle;
    \fill[blue!70!white] (p1.corner 4) -- (p1.corner 5) -- (p1.corner 1) -- cycle;
    \draw[ thick, black] (p1.corner 4) -- (p1.corner 1);
\end{scope}

% 第二个五边形（平移）
\begin{scope}[xshift=2cm]
    \node[pentagon] (p2) at (0,0) {};
    \fill[green!80!black] (p2.corner 1) -- (p2.corner 2) -- (p2.corner 3) -- cycle;
    \fill[blue!70!white] (p2.corner 3) -- (p2.corner 4) -- (p2.corner 5) -- cycle;
   \fill[blue!70!white] (p2.corner 3) -- (p2.corner 5) -- (p2.corner 1) -- cycle;
   \draw[ thick, black] (p2.corner 3) -- (p2.corner 5);
\end{scope}

% 第三个五边形（加入红色块）
\begin{scope}[xshift=4cm]
    \node[pentagon] (p3) at (0,0) {};
    \fill[green!80!black] (p3.corner 1) -- (p3.corner 2) -- (p3.corner 4) -- cycle;
    \fill[blue!70!white] (p3.corner 1) -- (p3.corner 4) -- (p3.corner 5) -- cycle;
    \fill[red!80!black] (p3.corner 2) -- (p3.corner 3) -- (p3.corner 4) -- cycle;
    
\end{scope}

% 第四个五边形（绿色+红色）
\begin{scope}[xshift=6cm]
    \node[pentagon] (p4) at (0,0) {};
    \fill[green!80!black] (p4.corner 1) -- (p4.corner 2) -- (p4.corner 5) -- cycle;
    \fill[red!80!black] (p4.corner 3) -- (p4.corner 4) -- (p4.corner 5) -- cycle;
    \fill[red!80!black] (p4.corner 2) -- (p4.corner 3) -- (p4.corner 5) -- cycle;
    \draw[ thick, black] (p4.corner 3) -- (p4.corner 5);
\end{scope}

% 第五个五边形（右侧，绿色+红色）
\begin{scope}[xshift=8cm]
    \node[pentagon] (p5) at (0,0) {};
    \fill[green!80!black] (p5.corner 1) -- (p5.corner 2) -- (p5.corner 5) -- cycle;
    \fill[red!80!black] (p5.corner 3) -- (p5.corner 4) -- (p5.corner 2) -- cycle;
    \fill[red!80!black] (p5.corner 5) -- (p5.corner 4) -- (p5.corner 2) -- cycle;
     \draw[ thick, black] (p5.corner 2) -- (p5.corner 4);
\end{scope}



\end{tikzpicture}

\end{document}
